home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 12835 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.4 KB

  1. Path: venus.roc.csci.csc.com!pccom9-156
  2. From: tottinge@csci.csc.com (Tim Ottinger)
  3. Newsgroups: comp.lang.c++,comp.unix.programmer,comp.os.linux.misc
  4. Subject: Re: ofstream
  5. Date: Thu, 21 Mar 96 21:39:59 GMT
  6. Organization: CSC CIS - TRIS DIVISION
  7. Message-ID: <4isljh$s8c@venus.roc.csci.csc.com>
  8. References: <4iju9a$m68@tic.sm.dsi.unimi.it>
  9. NNTP-Posting-Host: pccom9-156.csci.csc.com
  10. X-Newsreader: News Xpress Version 1.0 Beta #3
  11.  
  12. In article <4iju9a$m68@tic.sm.dsi.unimi.it>,
  13.    moreld@dsi.unimi.it (~ZIO BUDDA~) wrote:
  14. >hi, this is my question :
  15. >
  16. >why if i write a line like
  17. >ofstream ("PIPPO")
  18. >the g++ 2.7.0 not return any warning or error?>??
  19. >
  20. >is this correct in c++???
  21. >
  22.  
  23. I would suppose because it correctly constructed a temporary ofstream
  24. with your expression "PIPPO".  What you've written is a valid cast, and
  25. the constructor answers it just fine.
  26.  
  27. ******************************************************************************
  28. * Tim Ottinger, Sr Tech                       tottinge@csci.csc.com *
  29. * CSC Communications Industry Services                   217-351-8508x2420 *
  30. * TRIS Division -- Cellular Billing and Support                Fax 217-351-2640 *
  31. ******************************************************************************
  32. * Requirements have always been the least stable part of any project I have  *
  33. * worked upon.                            -- Robert Martin via Usenet 12/02/95 *
  34. ******************************************************************************
  35.